package com.jinzecloud.ordersystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jinzecloud.ordersystem.bean.SpOrderitem;
import com.jinzecloud.ordersystem.mapper.SpOrderitemMapper;
import com.jinzecloud.ordersystem.service.SpOrderitemService;
import com.jinzecloud.ordersystem.utils.PageUtils;
import com.jinzecloud.ordersystem.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;


@Service("spOrderitemService")
public class SpOrderitemServiceImpl extends ServiceImpl<SpOrderitemMapper, SpOrderitem> implements SpOrderitemService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SpOrderitem> page = this.page(
                new Query<SpOrderitem>().getPage(params),
                new QueryWrapper<SpOrderitem>()
        );

        return new PageUtils(page);
    }

}